<form class="layui-form" lay-filter="tpl_site_config{$site_config_id}" action="{:url('siteConfig/saveData')}">
	<input type="hidden" name="site_config_id" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">配置名称</label>
		<div class="layui-input-inline">
			<input type="text" name="config_name" lay-verify="required|config_name_check" placeholder="只能是字母，下划线，数字，且必须字母开头" autocomplete="off" class="layui-input">
			<div class="layui-form-mid layui-word-aux">添加后不能修改</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">显示名称</label>
		<div class="layui-input-inline">
			<input type="text" name="view_name" lay-verify="required" placeholder="请输入显示名称" autocomplete="off" class="layui-input">
			<div class="layui-form-mid layui-word-aux">方便查看</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">配置方式</label>
		<div class="layui-input-inline">
			<select name="config_type">
				<option value="1">单行文本</option>
				<option value="2">数字输入</option>
				<option value="3">单项选择</option>
				<option value="4">多行文本</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">配置选项</label>
		<div class="layui-input-inline">
			<textarea name="config_option" placeholder="每行一个选项" class="layui-textarea"></textarea>
			<div class="layui-form-mid layui-word-aux">单项选择时必须填写，每行一个选项</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">备注说明</label>
		<div class="layui-input-inline">
			<input type="text" name="config_intro" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">配置排序</label>
		<div class="layui-input-inline">
			<input type="number" name="view_sort" placeholder="数字越高排序越靠后" autocomplete="off" class="layui-input">
		</div>
	</div>
	
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_site_config">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var site_config_id = "{$site_config_id}";
	var site_config_form_value = {$data};
</script>
<script src="/static/js/site_config/site_config_tpl.js" type="text/javascript" charset="utf-8"></script>
